package org.lintcode_Close.Stage1_Easy_50.O3数组与循环;

import java.util.List;

/**
 * @Auther: qingle
 * @Date: 2024/8/17-13:00
 * @Description:
 * @version: 1.0
 */
public class 寻找最大值 {

	public int maxNum(List<Integer> nums) {
		// write your code here
		int max = Integer.MIN_VALUE;
		for(int i = 0; i < nums.size(); i++) {
			if (nums.get(i) > max) {
				max = nums.get(i);
			}
		}
		return max;
	}
}
